<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head th:replace="templates/headerCommon::common_header(~{::title},~{::link})">
    <title>if页面</title>
    <!--    个性化的引入-->
    <link rel="stylesheet" th:href="@{/css/fragment.css}">
    <link rel="stylesheet" th:href="@{/css/font.css}">
</head>
<body>
<ul th:each="str: ${datas}">
    <li th:text="${str}"> </li>
    <li th:if="${str}">如果为true,显示改行文字。</li>
</ul>
</body>
</html>